home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / gadget / r3colgd.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  1.4 KB  |  64 lines

  1.  
  2. // JavaScript wrapper for r3colgd.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_COLORGADGET_H = 1;
  7. include("oops/r3cgad.js")
  8. include("oops/r3gadget.js")
  9.  
  10.  
  11. var R3CLID_COLORGADGET = 607;
  12.  
  13.  
  14.  
  15.  
  16. // Description: All these methods are used internally for mapchanges    
  17.  
  18. R3COLGADM_CANDROP = 607010;
  19.  
  20. function mR3COLGADM_CANDROP() {
  21.   DoA(this.r3obj, 607010, 0, R3TID_INTEGER, 0);
  22. }
  23.  
  24.  
  25.  
  26.  
  27. R3COLGDA_Expanded = 607500;
  28. function SetR3COLGDA_Expanded(value) {
  29.   R3Set(this.r3obj, R3COLGDA_Expanded, value, R3TID_INTEGER, 0); 
  30. }
  31.  
  32. function GetR3COLGDA_Expanded() {
  33.   return R3Get(this.r3obj, R3COLGDA_Expanded, R3TID_INTEGER, 0); 
  34. }
  35.  
  36. R3COLGDA_AlphaEnabled = 607502;
  37. function SetR3COLGDA_AlphaEnabled(value) {
  38.   R3Set(this.r3obj, R3COLGDA_AlphaEnabled, value, R3TID_BOOLEAN, 0); 
  39. }
  40.  
  41. R3COLGDA_UnitConverter = 607510;
  42. function SetR3COLGDA_UnitConverter(value) {
  43.   R3Set(this.r3obj, R3COLGDA_UnitConverter, value, R3TID_OBJECT, 0); 
  44. }
  45.  
  46.  
  47.  
  48. function r3Colorgadget () { 
  49.    this.base = r3God;
  50.    if(arguments.length) {
  51.       this.base(R3CLID_COLORGADGET, arguments);
  52.    }
  53.    // Methods
  54.    this.CANDROP=mR3COLGADM_CANDROP;
  55.  
  56.    // Attributes
  57.    this.GetExpanded=GetR3COLGDA_Expanded;
  58.    this.SetExpanded=SetR3COLGDA_Expanded;
  59.    this.SetAlphaEnabled=SetR3COLGDA_AlphaEnabled;
  60.    this.SetUnitConverter=SetR3COLGDA_UnitConverter;
  61. }
  62.  
  63. r3Colorgadget.prototype=new r3Gadget;
  64. // r3colgd.h_H